<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>PintarOS: include/fs.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">PintarOS
   </div>
   <div id="projectbrief">Operating System for Smart Card</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Groups</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">fs.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="fs_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#ifndef FS_H</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#define FS_H</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#define FS_OK                           0</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#define FS_ERROR                        30</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define FS_ERROR_INSUFFICIENT_SPACE     31</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define FS_ERROR_NOT_FOUND              32</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define FS_ERROR_DUPLICATE_FID          33</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define FS_ERROR_SECURITY_STATUS        34</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#define FS_NONE                         0</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#define FS_TAG_MF                       0x3F</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define FS_TAG_DF                       0x4F</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define FS_TAG_EF                       0x5F</span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor">#define FS_EF_STRUCTURE_TRANSPARENT     0</span></div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define FS_EF_STRUCTURE_RECORD          1</span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define FS_EF_STRUCTURE_CYCLIC          3</span></div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="preprocessor">#define FS_EF_TYPE_WORKING      0</span></div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define FS_EF_TYPE_INTERNAL     1</span></div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="preprocessor">#define FS_OP_READ      0</span></div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define FS_OP_UPDATE    1</span></div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="comment">/*****************************/</span></div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="comment">/*        Enumeration        */</span></div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="comment">/*****************************/</span></div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="group__fs.html#gae0b7a8fdbb83d5bdeaf6ee5bab8054fe">   52</a></span>&#160;<span class="keyword">enum</span> <a class="code" href="group__fs.html#gae0b7a8fdbb83d5bdeaf6ee5bab8054fe">ef_struct</a></div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;{</div>
<div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="group__fs.html#ggae0b7a8fdbb83d5bdeaf6ee5bab8054feac719d3f34968bcf992d4c0c48841cf63">   54</a></span>&#160;        <a class="code" href="group__fs.html#ggae0b7a8fdbb83d5bdeaf6ee5bab8054feac719d3f34968bcf992d4c0c48841cf63">Transparent</a>,    </div>
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="group__fs.html#ggae0b7a8fdbb83d5bdeaf6ee5bab8054feae0da40ac190d835380202f40a9fc76eb">   55</a></span>&#160;        <a class="code" href="group__fs.html#ggae0b7a8fdbb83d5bdeaf6ee5bab8054feae0da40ac190d835380202f40a9fc76eb">Record</a>,         </div>
<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="group__fs.html#ggae0b7a8fdbb83d5bdeaf6ee5bab8054fea5aa1e27646a18fb490c0ff4a9b7b2f6e">   56</a></span>&#160;    <a class="code" href="group__fs.html#ggae0b7a8fdbb83d5bdeaf6ee5bab8054fea5aa1e27646a18fb490c0ff4a9b7b2f6e">Cyclic</a>          </div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;};</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;</div>
<div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="group__fs.html#ga6f46d6e4f39750fecff1240810793832">   63</a></span>&#160;<span class="keyword">enum</span> <a class="code" href="group__fs.html#ga6f46d6e4f39750fecff1240810793832">ef_type</a></div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;{</div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="group__fs.html#gga6f46d6e4f39750fecff1240810793832a7352fd1878874b86d44e973e7b7c046e">   65</a></span>&#160;        <a class="code" href="group__fs.html#gga6f46d6e4f39750fecff1240810793832a7352fd1878874b86d44e973e7b7c046e">Working</a>,        </div>
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="group__fs.html#gga6f46d6e4f39750fecff1240810793832aa992d66faf4c155dfd78ec168fc25f8a">   66</a></span>&#160;        <a class="code" href="group__fs.html#gga6f46d6e4f39750fecff1240810793832aa992d66faf4c155dfd78ec168fc25f8a">Internal</a>,       </div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;};</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;<span class="comment">/****************************/</span></div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;<span class="comment">/*      Data Structure      */</span></div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;<span class="comment">/****************************/</span></div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;</div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="structEF__st.html">   78</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structEF__st.html">EF_st</a></div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;{</div>
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="structEF__st.html#ab0f716dd423cdafeb57a8407c7e17c74">   80</a></span>&#160;        uint16_t        <a class="code" href="structEF__st.html#ab0f716dd423cdafeb57a8407c7e17c74">FID</a>;            </div>
<div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="structEF__st.html#aa461045dd393c1b2119bbac641223519">   81</a></span>&#160;        uint8_t         <a class="code" href="structEF__st.html#aa461045dd393c1b2119bbac641223519">structure</a>;      </div>
<div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="structEF__st.html#a768eec421a4d5759fbf5b257479b9a61">   82</a></span>&#160;        uint8_t         <a class="code" href="structEF__st.html#a768eec421a4d5759fbf5b257479b9a61">type</a>;           </div>
<div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="structEF__st.html#a20f6de743148b91bd033529b6460b9ba">   83</a></span>&#160;        uint8_t         <a class="code" href="structEF__st.html#a20f6de743148b91bd033529b6460b9ba">ACRead</a>;         </div>
<div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="structEF__st.html#a61d3f83f8f10561ee4bfb904d52cf9da">   84</a></span>&#160;        uint8_t         <a class="code" href="structEF__st.html#a61d3f83f8f10561ee4bfb904d52cf9da">ACUpdate</a>;       </div>
<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="structEF__st.html#a1e6e1e32d3d07c55eac45ee389894215">   85</a></span>&#160;        uint8_t         *<a class="code" href="structEF__st.html#a1e6e1e32d3d07c55eac45ee389894215">ptr_body</a>;      </div>
<div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="structEF__st.html#a4bca3be0269088500c9bb28b4eaa8952">   86</a></span>&#160;        uint16_t        <a class="code" href="structEF__st.html#a4bca3be0269088500c9bb28b4eaa8952">size</a>;           </div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;} ;</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;</div>
<div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="structDF__st.html">   93</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structDF__st.html">DF_st</a></div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;{</div>
<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="structDF__st.html#a36c5cae0b95d253995671c34fac894cf">   95</a></span>&#160;        uint16_t                <a class="code" href="structDF__st.html#a36c5cae0b95d253995671c34fac894cf">FID</a>;                    </div>
<div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="structDF__st.html#aa9afdc4596b4fd8a12d4780e8a1ae7f1">   96</a></span>&#160;        <span class="keywordtype">char</span>                    <a class="code" href="structDF__st.html#aa9afdc4596b4fd8a12d4780e8a1ae7f1">DFname</a>[16];             </div>
<div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="structDF__st.html#ae5e7c6bdf372bd9fb0ccabf4d806dc61">   97</a></span>&#160;        <span class="keywordtype">bool</span>                    <a class="code" href="structDF__st.html#ae5e7c6bdf372bd9fb0ccabf4d806dc61">asc_flag</a>;               </div>
<div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="structDF__st.html#ac7b544b4e9ece792a081cac91a4f2436">   98</a></span>&#160;        int                     (* <a class="code" href="structDF__st.html#ac7b544b4e9ece792a081cac91a4f2436">asc</a>)(int);           </div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;} ;</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;<span class="comment">/**************************/</span></div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;<span class="comment">/*        Variable        */</span></div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;<span class="comment">/**************************/</span></div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;<span class="comment">/**************************/</span></div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;<span class="comment">/*        Function        */</span></div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;<span class="comment">/**************************/</span></div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;<span class="keywordtype">int</span> FSFormat();</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;<span class="keywordtype">int</span> <a class="code" href="group__fs.html#ga5f5f0f157759a32e861b2d8177911353">FSInitialize</a>();</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;<span class="keywordtype">int</span> <a class="code" href="group__fs.html#gafed36802a2254132739776c576c0e53e">FSGetHeader</a>(uint16_t block_addr, uint8_t offset, uint8_t * dest);</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;<span class="keywordtype">int</span> FSCreateHeader(uint8_t tag, uint16_t fid, uint16_t * addr);</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;uint16_t FSSearchFID(uint16_t fid);</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;<span class="keywordtype">int</span> <a class="code" href="group__fs.html#gab1bf818b552bb3c24080e3249112e026">FSSelectMF</a>();</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;<span class="keywordtype">int</span> <a class="code" href="group__fs.html#ga6df8bb917f2541f08f75796623a956a4">FSSelectFID</a>(uint16_t fid);</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;<span class="keywordtype">int</span> <a class="code" href="group__fs.html#ga11624170ed19096e661a18cf31ae0cfb">FSSelectPath</a>(uint16_t* path, <span class="keywordtype">int</span> length);</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;<span class="keywordtype">int</span> <a class="code" href="group__fs.html#ga9e04aaa657e9c4bcca8323c8779fc687">FSSelectSFID</a>(uint8_t sfid);</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;<span class="keywordtype">int</span> <a class="code" href="group__fs.html#ga697390f044810e38c9308d12109487a9">FSSelectName</a>(<span class="keywordtype">char</span>* DFname, uint8_t length);</div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;<span class="keywordtype">int</span> <a class="code" href="group__fs.html#ga9f8915bf60a20928be8f7ab9a5750309">FSAccessBinary</a>(<span class="keywordtype">int</span> op, <span class="keywordtype">int</span> offset, <span class="keywordtype">int</span> length, uint8_t *databyte);</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;</div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;<span class="keywordtype">int</span> <a class="code" href="group__fs.html#gadee7ce5359cf03ffb89420e4012ca8b9">FSAccessRecord</a>(<span class="keywordtype">int</span> op, <span class="keywordtype">int</span> recordNum, <span class="keywordtype">int</span> length, uint8_t *databyte);</div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;</div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;<span class="keywordtype">int</span> <a class="code" href="group__fs.html#ga57bbc0e2b610758d6710826166345004">FSCreateFile</a>(<span class="keywordtype">int</span> tag, <span class="keywordtype">void</span> * desc);</div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;</div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;<span class="keywordtype">int</span> <a class="code" href="group__fs.html#gab24d6b7331b45fa5ad94f87244f4ce29">FSDeleteFile</a>(uint16_t fid);</div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;</div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;<span class="keywordtype">int</span> FSAlloc(uint16_t size, uint16_t startBlock, uint16_t endBlock, uint16_t * address);</div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;</div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;<span class="keywordtype">int</span> FSAllocHeader(uint16_t * address);</div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;</div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;<span class="keywordtype">int</span> FSAllocBody(uint16_t * address, uint16_t length);</div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;</div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;<span class="keywordtype">int</span> FSFree(uint16_t address, uint16_t length);</div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;</div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="ttc" id="group__fs_html_ga5f5f0f157759a32e861b2d8177911353"><div class="ttname"><a href="group__fs.html#ga5f5f0f157759a32e861b2d8177911353">FSInitialize</a></div><div class="ttdeci">int FSInitialize()</div><div class="ttdoc">InitializerInitialize file system. </div></div>
<div class="ttc" id="structEF__st_html_ab0f716dd423cdafeb57a8407c7e17c74"><div class="ttname"><a href="structEF__st.html#ab0f716dd423cdafeb57a8407c7e17c74">EF_st::FID</a></div><div class="ttdeci">uint16_t FID</div><div class="ttdoc">File identifier. </div><div class="ttdef"><b>Definition:</b> fs.h:80</div></div>
<div class="ttc" id="structDF__st_html_a36c5cae0b95d253995671c34fac894cf"><div class="ttname"><a href="structDF__st.html#a36c5cae0b95d253995671c34fac894cf">DF_st::FID</a></div><div class="ttdeci">uint16_t FID</div><div class="ttdoc">File identifier. </div><div class="ttdef"><b>Definition:</b> fs.h:95</div></div>
<div class="ttc" id="group__fs_html_ga6f46d6e4f39750fecff1240810793832"><div class="ttname"><a href="group__fs.html#ga6f46d6e4f39750fecff1240810793832">ef_type</a></div><div class="ttdeci">ef_type</div><div class="ttdoc">EF File Type enumeration. </div><div class="ttdef"><b>Definition:</b> fs.h:63</div></div>
<div class="ttc" id="group__fs_html_gab24d6b7331b45fa5ad94f87244f4ce29"><div class="ttname"><a href="group__fs.html#gab24d6b7331b45fa5ad94f87244f4ce29">FSDeleteFile</a></div><div class="ttdeci">int FSDeleteFile(uint16_t fid)</div><div class="ttdoc">delete a fileFile system function to delete a file </div><div class="ttdef"><b>Definition:</b> fs.c:911</div></div>
<div class="ttc" id="structDF__st_html_aa9afdc4596b4fd8a12d4780e8a1ae7f1"><div class="ttname"><a href="structDF__st.html#aa9afdc4596b4fd8a12d4780e8a1ae7f1">DF_st::DFname</a></div><div class="ttdeci">char DFname[16]</div><div class="ttdoc">DF name. </div><div class="ttdef"><b>Definition:</b> fs.h:96</div></div>
<div class="ttc" id="group__fs_html_ggae0b7a8fdbb83d5bdeaf6ee5bab8054fea5aa1e27646a18fb490c0ff4a9b7b2f6e"><div class="ttname"><a href="group__fs.html#ggae0b7a8fdbb83d5bdeaf6ee5bab8054fea5aa1e27646a18fb490c0ff4a9b7b2f6e">Cyclic</a></div><div class="ttdoc">File using Cyclic Record Structure. </div><div class="ttdef"><b>Definition:</b> fs.h:56</div></div>
<div class="ttc" id="structDF__st_html"><div class="ttname"><a href="structDF__st.html">DF_st</a></div><div class="ttdoc">structure of DF file descriptor </div><div class="ttdef"><b>Definition:</b> fs.h:93</div></div>
<div class="ttc" id="group__fs_html_ggae0b7a8fdbb83d5bdeaf6ee5bab8054feac719d3f34968bcf992d4c0c48841cf63"><div class="ttname"><a href="group__fs.html#ggae0b7a8fdbb83d5bdeaf6ee5bab8054feac719d3f34968bcf992d4c0c48841cf63">Transparent</a></div><div class="ttdoc">File using transparent structure. </div><div class="ttdef"><b>Definition:</b> fs.h:54</div></div>
<div class="ttc" id="structEF__st_html_a4bca3be0269088500c9bb28b4eaa8952"><div class="ttname"><a href="structEF__st.html#a4bca3be0269088500c9bb28b4eaa8952">EF_st::size</a></div><div class="ttdeci">uint16_t size</div><div class="ttdoc">size of file </div><div class="ttdef"><b>Definition:</b> fs.h:86</div></div>
<div class="ttc" id="group__fs_html_gga6f46d6e4f39750fecff1240810793832aa992d66faf4c155dfd78ec168fc25f8a"><div class="ttname"><a href="group__fs.html#gga6f46d6e4f39750fecff1240810793832aa992d66faf4c155dfd78ec168fc25f8a">Internal</a></div><div class="ttdoc">Internal type file. </div><div class="ttdef"><b>Definition:</b> fs.h:66</div></div>
<div class="ttc" id="structEF__st_html_a20f6de743148b91bd033529b6460b9ba"><div class="ttname"><a href="structEF__st.html#a20f6de743148b91bd033529b6460b9ba">EF_st::ACRead</a></div><div class="ttdeci">uint8_t ACRead</div><div class="ttdoc">access control for read operation </div><div class="ttdef"><b>Definition:</b> fs.h:83</div></div>
<div class="ttc" id="group__fs_html_gae0b7a8fdbb83d5bdeaf6ee5bab8054fe"><div class="ttname"><a href="group__fs.html#gae0b7a8fdbb83d5bdeaf6ee5bab8054fe">ef_struct</a></div><div class="ttdeci">ef_struct</div><div class="ttdoc">EF File Structure enumeration. </div><div class="ttdef"><b>Definition:</b> fs.h:52</div></div>
<div class="ttc" id="group__fs_html_gga6f46d6e4f39750fecff1240810793832a7352fd1878874b86d44e973e7b7c046e"><div class="ttname"><a href="group__fs.html#gga6f46d6e4f39750fecff1240810793832a7352fd1878874b86d44e973e7b7c046e">Working</a></div><div class="ttdoc">Working type file. </div><div class="ttdef"><b>Definition:</b> fs.h:65</div></div>
<div class="ttc" id="structEF__st_html_aa461045dd393c1b2119bbac641223519"><div class="ttname"><a href="structEF__st.html#aa461045dd393c1b2119bbac641223519">EF_st::structure</a></div><div class="ttdeci">uint8_t structure</div><div class="ttdoc">file structure : Transparent or Record </div><div class="ttdef"><b>Definition:</b> fs.h:81</div></div>
<div class="ttc" id="group__fs_html_ga57bbc0e2b610758d6710826166345004"><div class="ttname"><a href="group__fs.html#ga57bbc0e2b610758d6710826166345004">FSCreateFile</a></div><div class="ttdeci">int FSCreateFile(int tag, void *desc)</div><div class="ttdoc">create a new fileFile system function to create a file </div><div class="ttdef"><b>Definition:</b> fs.c:806</div></div>
<div class="ttc" id="group__fs_html_ga697390f044810e38c9308d12109487a9"><div class="ttname"><a href="group__fs.html#ga697390f044810e38c9308d12109487a9">FSSelectName</a></div><div class="ttdeci">int FSSelectName(char *DFname, uint8_t length)</div><div class="ttdoc">select with nameFile system function to select a DF file with name </div></div>
<div class="ttc" id="group__fs_html_ga9f8915bf60a20928be8f7ab9a5750309"><div class="ttname"><a href="group__fs.html#ga9f8915bf60a20928be8f7ab9a5750309">FSAccessBinary</a></div><div class="ttdeci">int FSAccessBinary(int op, int offset, int length, uint8_t *databyte)</div><div class="ttdoc">access a transparent fileFile system function to access (read &amp;amp; update) a transparent file ...</div><div class="ttdef"><b>Definition:</b> fs.c:337</div></div>
<div class="ttc" id="structDF__st_html_ae5e7c6bdf372bd9fb0ccabf4d806dc61"><div class="ttname"><a href="structDF__st.html#ae5e7c6bdf372bd9fb0ccabf4d806dc61">DF_st::asc_flag</a></div><div class="ttdeci">bool asc_flag</div><div class="ttdoc">indication to application specific code </div><div class="ttdef"><b>Definition:</b> fs.h:97</div></div>
<div class="ttc" id="group__fs_html_gafed36802a2254132739776c576c0e53e"><div class="ttname"><a href="group__fs.html#gafed36802a2254132739776c576c0e53e">FSGetHeader</a></div><div class="ttdeci">int FSGetHeader(uint16_t block_addr, uint8_t offset, uint8_t *dest)</div><div class="ttdoc">FSGetHeaderFile system function to retrieve header information of a file. </div></div>
<div class="ttc" id="structEF__st_html"><div class="ttname"><a href="structEF__st.html">EF_st</a></div><div class="ttdoc">structure of EF file header </div><div class="ttdef"><b>Definition:</b> fs.h:78</div></div>
<div class="ttc" id="group__fs_html_ggae0b7a8fdbb83d5bdeaf6ee5bab8054feae0da40ac190d835380202f40a9fc76eb"><div class="ttname"><a href="group__fs.html#ggae0b7a8fdbb83d5bdeaf6ee5bab8054feae0da40ac190d835380202f40a9fc76eb">Record</a></div><div class="ttdoc">File using Record structure. </div><div class="ttdef"><b>Definition:</b> fs.h:55</div></div>
<div class="ttc" id="structEF__st_html_a61d3f83f8f10561ee4bfb904d52cf9da"><div class="ttname"><a href="structEF__st.html#a61d3f83f8f10561ee4bfb904d52cf9da">EF_st::ACUpdate</a></div><div class="ttdeci">uint8_t ACUpdate</div><div class="ttdoc">access control for write operation </div><div class="ttdef"><b>Definition:</b> fs.h:84</div></div>
<div class="ttc" id="structEF__st_html_a768eec421a4d5759fbf5b257479b9a61"><div class="ttname"><a href="structEF__st.html#a768eec421a4d5759fbf5b257479b9a61">EF_st::type</a></div><div class="ttdeci">uint8_t type</div><div class="ttdoc">type of file : Working or Internal </div><div class="ttdef"><b>Definition:</b> fs.h:82</div></div>
<div class="ttc" id="structEF__st_html_a1e6e1e32d3d07c55eac45ee389894215"><div class="ttname"><a href="structEF__st.html#a1e6e1e32d3d07c55eac45ee389894215">EF_st::ptr_body</a></div><div class="ttdeci">uint8_t * ptr_body</div><div class="ttdoc">pointer to file body </div><div class="ttdef"><b>Definition:</b> fs.h:85</div></div>
<div class="ttc" id="group__fs_html_ga11624170ed19096e661a18cf31ae0cfb"><div class="ttname"><a href="group__fs.html#ga11624170ed19096e661a18cf31ae0cfb">FSSelectPath</a></div><div class="ttdeci">int FSSelectPath(uint16_t *path, int length)</div><div class="ttdoc">select with pathFile system function to select a file with path </div></div>
<div class="ttc" id="group__fs_html_gadee7ce5359cf03ffb89420e4012ca8b9"><div class="ttname"><a href="group__fs.html#gadee7ce5359cf03ffb89420e4012ca8b9">FSAccessRecord</a></div><div class="ttdeci">int FSAccessRecord(int op, int recordNum, int length, uint8_t *databyte)</div><div class="ttdoc">access a record fileFile system function to access a record file </div></div>
<div class="ttc" id="structDF__st_html_ac7b544b4e9ece792a081cac91a4f2436"><div class="ttname"><a href="structDF__st.html#ac7b544b4e9ece792a081cac91a4f2436">DF_st::asc</a></div><div class="ttdeci">int(* asc)(int)</div><div class="ttdoc">pointer to the ASC handler </div><div class="ttdef"><b>Definition:</b> fs.h:98</div></div>
<div class="ttc" id="group__fs_html_gab1bf818b552bb3c24080e3249112e026"><div class="ttname"><a href="group__fs.html#gab1bf818b552bb3c24080e3249112e026">FSSelectMF</a></div><div class="ttdeci">int FSSelectMF()</div><div class="ttdoc">select MFFile system function to select MF </div><div class="ttdef"><b>Definition:</b> fs.c:310</div></div>
<div class="ttc" id="group__fs_html_ga9e04aaa657e9c4bcca8323c8779fc687"><div class="ttname"><a href="group__fs.html#ga9e04aaa657e9c4bcca8323c8779fc687">FSSelectSFID</a></div><div class="ttdeci">int FSSelectSFID(uint8_t sfid)</div><div class="ttdoc">select with short FIDFile system function to select a file with short FID </div></div>
<div class="ttc" id="group__fs_html_ga6df8bb917f2541f08f75796623a956a4"><div class="ttname"><a href="group__fs.html#ga6df8bb917f2541f08f75796623a956a4">FSSelectFID</a></div><div class="ttdeci">int FSSelectFID(uint16_t fid)</div><div class="ttdoc">select with full FIDFile system function to select a file with full FID </div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Jun 4 2014 18:13:31 for PintarOS by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.5
</small></address>
</body>
</html>
